package com.example.demo;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@SpringBootApplication
public class DemoApplication {

	public static void main(String[] args) {
		SpringApplication.run(DemoApplication.class, args);
	}
	
	@Value("${helloString}")
	private String helloString;
	
	@RequestMapping("test1")
	public String test1() {
		return helloString;
	}
	
	
	@Value("${ev}")
	private String ev;
	@RequestMapping("test3")
	public String test3() {
		return ev;
	}
}
